VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
END
Attribute VB_Name = "DistortCircle"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit

Public period As Single
Public amplitude As Single
' ************************************************
' Apply a shape distorting transformation to
' the point.
' ************************************************
Sub Distort(x As Single, y As Single, z As Single)
Dim D As Single

    D = Sqr(x * x + z * z)
    y = y + amplitude * Sin(D * 6.28 / period)
End Sub
